//登录接口需要携带参数
export interface loginForm {
  username: string;
  password: string;
}

interface dataType {
  token: string;
}

//登录接口返回数据信息
export interface loginRespData {
  code: number;
  data: dataType;
}

interface userINfo {
  userID: number;
  username: string;
  password: string;
  desc: string;
  roles: string[];
  button: string[];
  routes: string[];
  token: string;
}

//定义服务器返回用户信息相关数据类型
export interface userRespData {
  code: number;
  data: userINfo;
  message: string;
}
